FUNCTION

integer.str

pure function str(): text

Convert this integer to a base-10 text representation.

Since

0.9.0

Alias of integer.to_text


pure function str(radix: integer): text

Convert this integer to a text representation with the specified radix.

Does not include a base prefix in the output, i.e. integer(25).to_text(16) returns 19 rather than 0x19.

Supported radixes are from 2 to 36 (inclusive).

Parameters

  • radix — The radix (base) to use for the text representation.

Throws

  • exception — if the radix is outside the supported range

Since

0.9.0

Alias of integer.to_text

© 2026 Chromia